home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
101-125
/
disk_104
/
analyticalc
/
cf02.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-05-06
|
3KB
|
85 lines
/#
//
VM
* (above command turns off screen display update. We may want to
* turn off recalculate too via RM, but let user decide.)
* COMMAND FILE TO GRAPH ONE OR TWO SECTIONS OF A
* SPREADSHEET.
* INVOKE WITH THE COMMAND @GRF.CMD" AT COMMAND LEVEL (OR
* BIND IT TO A KEY).
* IGNORE EXTRA PROMPTS AT THE COMMAND LINE.
* THIS FILE WILL RUN FASTER IF YOU REMOVE ALL THESE COMMENT LINES
* (I.E. ALL LINES THAT START WITH * CHARACTER)
*
* FIRST SAVE THE SHEET (NUMERICALLY ONLY FOR SPACE & SPEED)
* DON'T BOTHER SAVING WHERE WE ARE JUST HERE...
%IGNORE prompts here... saving data for graphics...%*%%
*
* Notice we can use techniques similar to this to get graphs
* from either of the two BASIC graphics programs, though they
* need to be modified to read their inputs off files we can
* create. This set of commands uses ACGRAF to produce histograms
* or scatterplots. If one spreadsheet range is given, it will be
* output as a histogram. If two are given (separated by space),
* they will be scatter plotted, the first range against the
* second. Ranges may be a row or a column (or part thereof).
* These comments should be left in, as they give a short delay for
* reading a message.
* Invoke this procedure with @GRF.CMD from AnalytiCalc. Or bind
* a function key to mean @GRF.CMD by editing AUXKPD.TXT.
* Here we actually save the sheet. Note if we did a PDN it'd
* save the sheet according to the display mapping so we could
* do our plots of what's displayed in the order displayed, rather
* than physical order. Edit these procedures to suit yourself.
*
L A1
PPN
TMP.PCC
0
0
* null command to clear command line
% %%%
%NOW give region names separated by space if two rather than one.%*%%
*
*
*
*
* DELAY SPACERS SO THIS FLASHED MESSAGE CAN BE NOTICED
*
*
*
*
*
*
*
*
* erase flashed message by couple of commands.
% %%%
% %*%%
% %%%
* NOW TMP.PCC HAS THE SAVED INFO, SO NOW FIND OUT WHERE THE
* USER WANTS GRAPHED. Then fire up GRF.BAT to run ACGRAF to
* actually generate the plot. Then we'll clean up.
* NOTE: GRF.BAT GENERATES LINEAR-LINEAR PLOTS WITH ORIGIN
* INCLUDED. MODIFY THE "PP" TO "NN", "LL", "NL" OR SOME
* SUCH TO EITHER NOT INCLUDE THE ORIGIN OR CHANGE TO A
* LOG OR SEMILOG PLOT.
* Also note that you can put output to a printer by replacing
* CON: in GRF.BAT by PRN: instead.
* Here ask user for what region(s) he wants to plot.
*
%Enter region name(s) to graph:%}grf %\%
*Now we've got control back, so erase tmp.pcc so the disk
* stays cleaned up.
* Comment this out if you want to leave the savefile around for
* multiple graphs.
$DEL TMP.PCC
* If we had used RM in the start to turn off recalculation,
* we'd want to use R here to turn it back on, but omit here.
*
* Turn on screen redraw.
V
* THAT'S IT.
/#